package com.letoken.platform.app.sss.controller;


import com.letoken.platform.pub.res.ApiResponse;
import com.letoken.platform.repo.sss.req.OtcTransactionRecordReq;
import com.letoken.platform.repo.sss.servie.UserOtcDetailService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 作者
 * @since 2024-09-05
 */
@RestController
@RequestMapping("/user-otc-detail")
public class UserOtcDetailController {
    @Resource
    private UserOtcDetailService userOtcDetailService;


    @PostMapping("/transaction_record/page")
    public ApiResponse<?> transactionRecordPage(@RequestBody OtcTransactionRecordReq req) {
        return userOtcDetailService.transactionRecordPage(req.status, req.getPage(), req.getSize());
    }
}

